import Link from 'next/link'; import { notFound } from 'next/navigation'; import { Section, KV } from '@/components/ui/section'; import { Badge, StatusBadge } from '@/components/ui/badge'; import { JsonView } from '@/components/ui/json-view'; import { getRun } from '@/lib/queries/sources'; import { fmtDateTime, fmtDuration, fmtInt } from '@/lib/format'; export default async function RunPage({ params }: { params: Promise<{ runId: string }> }) { const { runId } = await params; const r = await getRun(runId); if (!r) notFound(); return (
Ingest run
{r.source_name ?? r.connector_id}
Before
After
No schema drift detected in this run.
}
{r.log.map((l, i) => (
{l.t} {l.level.padEnd(5)} {l.msg}
))}
) : (
Empty log.
)}